/*
 * Copyright (c) 2007-2021 西安交通信息投资营运有限公司 版权所有
 */

package com.xci.xajtfb.wxc.dao;

import com.github.lvyanyang.annotation.Paging;
import com.xci.xajtfb.wxc.entity.SchGrounp;
import com.xci.xajtfb.wxc.filter.SchGrounpFilter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 训练场基本资料表数据层
 * @author 马星俊 maxingjun@xci96716.com
 * @since 2021-03-01 17:39:46
 */
public interface SchGrounpDao {


    /**
     * 根据主键查询单个训练场基本资料表
     * @param id 训练场基本资料表主键
     * @return 返回训练场基本资料表实体
     */
    SchGrounp selectById(@Param("id") Long id);

    /**
     * 查询训练场基本资料表分页列表
     * @param filter 过滤条件
     * @return 返回训练场基本资料表分页列表
     */
    /*
        allowSortNames = {"school_id","ground_name","ground_address","ground_person","ground_tel","training_vehicle_type_name","training_vehicle_type_value","ground_nature","subject_type","ground_area","accommodate_count","put_count","status","audit_status","audit_date","audit_name","ground_url","longitude","latitude","manage_dept","use_startdate","use_enddate","item_cf","item_dk","item_bpqb","item_zjzw","item_qxxs","item_shlm","item_mnsd","item_csdl","item_zldt","remark","area_name","area_code","legal_person","audit_opinion","input_sources","isblacklist","create_user_id","create_user_name","create_date_time","update_user_id","update_user_name","update_date_time"},
        sortNameMaps = {"school_id:school_id","ground_name:ground_name","ground_address:ground_address","ground_person:ground_person","ground_tel:ground_tel","training_vehicle_type_name:training_vehicle_type_name","training_vehicle_type_value:training_vehicle_type_value","ground_nature:ground_nature","subject_type:subject_type","ground_area:ground_area","accommodate_count:accommodate_count","put_count:put_count","status:status","audit_status:audit_status","audit_date:audit_date","audit_name:audit_name","ground_url:ground_url","longitude:longitude","latitude:latitude","manage_dept:manage_dept","use_startdate:use_startdate","use_enddate:use_enddate","item_cf:item_cf","item_dk:item_dk","item_bpqb:item_bpqb","item_zjzw:item_zjzw","item_qxxs:item_qxxs","item_shlm:item_shlm","item_mnsd:item_mnsd","item_csdl:item_csdl","item_zldt:item_zldt","remark:remark","area_name:area_name","area_code:area_code","legal_person:legal_person","audit_opinion:audit_opinion","input_sources:input_sources","isblacklist:isblacklist","create_user_id:create_user_id","create_user_name:create_user_name","create_date_time:create_date_time","update_user_id:update_user_id","update_user_name:update_user_name","update_date_time:update_date_time"}
    */
    @Paging
    List<SchGrounp> selectPageList(@Param("filter") SchGrounpFilter filter);
}